image compression algorithms in python